/* 创建全局自定义指令 */
import Vue from 'vue';
import store from './store';

Vue.directive('permission', {
    inserted(el,{value}) {
        let userName = value
        if (userName !== 'wumei') {
            el.parentNode.removeChild(el)
        }
    }
})